<script setup lang="ts">
import { onMounted } from 'vue';

import { useLabelColor } from '@/stores/index';

import { getLabelColors } from '@/api/api-quick-issue';

import AppHeader from '@/components/AppHeader.vue';
import AppFooter from '@/components/AppFooter.vue';

import QuickIssueImg from '@/assets/category/quick-issue/quick-bg.png';

const labelColor = useLabelColor();
const QuickIssueBg = `url(${QuickIssueImg})`;
onMounted(async () => {
  await getLabelColors().then((res) => {
    labelColor.setLabelColor(res?.data);
  });
});
</script>

<template>
  <div id="body">
    <AppHeader />
    <main>
      <Content />
    </main>
    <AppFooter />
  </div>
</template>

<style lang="scss" scoped>
#body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: v-bind('QuickIssueBg');
  background-position: center top;
  background-size: 100% auto;
  background-repeat: repeat;
  background-color: rgb(1, 10, 51);
}

main {
  position: relative;
  min-height: calc(100vh - 339px);
  // background-color: var(--o-color-bg1);
  // margin-top: 80px;
  overflow: hidden;

  @media (max-width: 1100px) {
    margin-top: 48px;
  }
}
</style>
